
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Introduction · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="installation.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="installation.html">
            
                <a href="installation.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    基础
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="essentials/getting-started.html">
            
                <a href="essentials/getting-started.html">
            
                    
                    开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="essentials/dynamic-matching.html">
            
                <a href="essentials/dynamic-matching.html">
            
                    
                    动态路由匹配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="essentials/nested-routes.html">
            
                <a href="essentials/nested-routes.html">
            
                    
                    嵌套路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="essentials/navigation.html">
            
                <a href="essentials/navigation.html">
            
                    
                    编程式导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="essentials/named-routes.html">
            
                <a href="essentials/named-routes.html">
            
                    
                    命名路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="essentials/named-views.html">
            
                <a href="essentials/named-views.html">
            
                    
                    命名视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="essentials/redirect-and-alias.html">
            
                <a href="essentials/redirect-and-alias.html">
            
                    
                    重定向 和 别名
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="essentials/history-mode.html">
            
                <a href="essentials/history-mode.html">
            
                    
                    HTML5 History 模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    进阶
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="advanced/navigation-guards.html">
            
                <a href="advanced/navigation-guards.html">
            
                    
                    导航钩子
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="advanced/meta.html">
            
                <a href="advanced/meta.html">
            
                    
                    路由元信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="advanced/transitions.html">
            
                <a href="advanced/transitions.html">
            
                    
                    过渡动效
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="advanced/data-fetching.html">
            
                <a href="advanced/data-fetching.html">
            
                    
                    数据获取
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="advanced/scroll-behavior.html">
            
                <a href="advanced/scroll-behavior.html">
            
                    
                    滚动行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="advanced/lazy-loading.html">
            
                <a href="advanced/lazy-loading.html">
            
                    
                    懒加载
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    API 文档
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="api/router-link.html">
            
                <a href="api/router-link.html">
            
                    
                    router-link
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="api/router-view.html">
            
                <a href="api/router-view.html">
            
                    
                    router-view
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="api/route-object.html">
            
                <a href="api/route-object.html">
            
                    
                    路由信息对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="api/options.html">
            
                <a href="api/options.html">
            
                    
                    Router 构造配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="api/router-instance.html">
            
                <a href="api/router-instance.html">
            
                    
                    Router 实例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="api/component-injections.html">
            
                <a href="api/component-injections.html">
            
                    
                    对组件注入
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Introduction</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="vue-router-2">vue-router 2</h1>
<!--email_off-->
<blockquote>
<p>&#x6CE8;&#x610F;: vue-router@2.x &#x53EA;&#x9002;&#x7528;&#x4E8E; Vue 2.x &#x7248;&#x672C;&#x3002;1.x &#x7248;&#x672C;&#x7684;&#x6587;&#x6863;&#x5728; <a href="https://github.com/vuejs/vue-router/tree/1.0/docs/en" target="_blank">&#x8FD9;&#x91CC;</a>&#x3002;
<!--/email_off-->
<strong><a href="https://github.com/vuejs/vue-router/releases" target="_blank">&#x7248;&#x672C;&#x8BF4;&#x660E;</a></strong></p>
</blockquote>
<ul>
<li><a href="installation.html">&#x5B89;&#x88C5;</a></li>
<li>&#x57FA;&#x7840;<ul>
<li><a href="essentials/getting-started.html">&#x5F00;&#x59CB;</a></li>
<li><a href="essentials/dynamic-matching.html">&#x52A8;&#x6001;&#x8DEF;&#x7531;&#x5339;&#x914D;</a></li>
<li><a href="essentials/nested-routes.html">&#x5D4C;&#x5957;&#x8DEF;&#x7531;</a></li>
<li><a href="essentials/navigation.html">&#x7F16;&#x7A0B;&#x5F0F;&#x5BFC;&#x822A;</a></li>
<li><a href="essentials/named-routes.html">&#x547D;&#x540D;&#x8DEF;&#x7531;</a></li>
<li><a href="essentials/named-views.html">&#x547D;&#x540D;&#x89C6;&#x56FE;</a></li>
<li><a href="essentials/redirect-and-alias.html">&#x91CD;&#x5B9A;&#x5411; &#x548C; &#x522B;&#x540D;</a></li>
<li><a href="essentials/history-mode.html">HTML5 History &#x6A21;&#x5F0F;</a></li>
</ul>
</li>
<li>&#x8FDB;&#x9636;<ul>
<li><a href="advanced/navigation-guards.html">&#x5BFC;&#x822A;&#x94A9;&#x5B50;</a></li>
<li><a href="advanced/meta.html">&#x8DEF;&#x7531;&#x5143;&#x4FE1;&#x606F;</a></li>
<li><a href="advanced/transitions.html">&#x8FC7;&#x6E21;&#x52A8;&#x6548;</a></li>
<li><a href="advanced/data-fetching.html">&#x6570;&#x636E;&#x83B7;&#x53D6;</a></li>
<li><a href="advanced/scroll-behavior.html">&#x6EDA;&#x52A8;&#x884C;&#x4E3A;</a></li>
<li><a href="advanced/lazy-loading.html">&#x61D2;&#x52A0;&#x8F7D;</a></li>
</ul>
</li>
<li>API &#x6587;&#x6863;<ul>
<li><a href="api/router-link.html">router-link</a></li>
<li><a href="api/router-view.html">router-view</a></li>
<li><a href="api/route-object.html">&#x8DEF;&#x7531;&#x4FE1;&#x606F;&#x5BF9;&#x8C61;</a></li>
<li><a href="api/options.html">Router &#x6784;&#x9020;&#x914D;&#x7F6E;</a></li>
<li><a href="api/router-instance.html">Router &#x5B9E;&#x4F8B;</a></li>
<li><a href="api/component-injections.html">&#x5BF9;&#x7EC4;&#x4EF6;&#x6CE8;&#x5165;</a></li>
</ul>
</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="installation.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 安装">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"安装","level":"1.2","depth":1,"path":"installation.md","ref":"installation.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2017-03-04T12:16:27.887Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-03-06T16:00:44.406Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

